// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import api from './request/api.js'
Vue.prototype.api = api
Vue.config.productionTip = false

//动态设置页面标题名称(vue原型添加自定义方法$setTitle)
Vue.prototype.$setTitle = function(title) {
	uni.setNavigationBarTitle({
		title: title || ""
	})
}
App.mpType = 'app'

const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
import App from './App.vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif